package com.dwr;

import java.util.Map;

import org.apache.commons.beanutils.BeanUtils;

import com.spring.service.product.ProductMessageService;
import com.struts.form.ProductMessageForm;

public class DwrProductMessage {
	
	private ProductMessageService productMessageService=null;
	
	
	public void saveProductMessage(Map formMap)
	{
		ProductMessageForm pmf=new ProductMessageForm();
		try
		{
			BeanUtils.populate(pmf, formMap); 
			productMessageService.saveProductMessage(pmf);
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
	}
	
	
	
	

	public ProductMessageService getProductMessageService() {
		return productMessageService;
	}

	public void setProductMessageService(ProductMessageService productMessageService) {
		this.productMessageService = productMessageService;
	}

}
